home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow / Players / PlayWnd / readme.txt < prev   
Encoding:
Text File  |  2001-10-10  |  2.8 KB  |  74 lines

  1. DirectShow Sample -- PlayWnd
  2. ----------------------------
  3.  
  4. Usage:
  5.  
  6.     playwnd <media filename>
  7.  
  8. Description:
  9.  
  10.     This sample is an interactive audio/video media file player.
  11.     It uses DirectShow to play any supported audio or video media file
  12.     (MPG, AVI, QT, WAV, AU, SND, MID, etc.).  The video will appear in
  13.     a window on the screen, and you can use a mouse to move the window.
  14.  
  15.     If the media has a video component, PlayWnd will read the video's
  16.     default size and adjust the player's client area to allow the video
  17.     to play at its preferred default size (taking into account the size of
  18.     caption bar & borders).
  19.  
  20.     You may mute the audio by pressing 'M'.  You may toggle full-screen mode
  21.     by pressing 'F'.  You can pause/resume playback with 'P' and stop/rewind
  22.     with 'S'.  To close the media clip, hit ESC, F12, X, or Q.
  23.  
  24.     If the media is audio-only, the player will display a small default window.
  25.  
  26.     You can specify a media file as the only command line argument:
  27.         Ex:  playwnd \\myserver\mediafiles\video\sample.avi
  28.  
  29.     If no file is specified, the application will automatically display the
  30.     Windows OpenFile dialog so that you can choose a file.
  31.  
  32.     Use the menu bar or the close button to exit the application.
  33.  
  34.  
  35. Accessing media files
  36.  
  37.     The media file may exist in your hard disk, CD-ROM, or on a network server.
  38.  
  39.  If the file is on a network server:
  40.     You may read a media file from a network server if you provide the full URL.
  41.     For example, "playwnd http://myserver/mediafiles/video/myvideo.avi" will
  42.     read the file from the server into system memory.  This approach will fail
  43.     if the media file is too large to fit in memory.
  44.  
  45.  
  46. Limitations:
  47.  
  48.     This sample will only render media files that are supported by the
  49.     DirectShow subsystem.  If you attempt to play a video (AVI, QuickTime, MPEG)
  50.     that is encoded with an unsupported Codec, you will only see a black
  51.     screen or no visible change to the display, although you should hear the
  52.     associated audio component if it uses a supported format.
  53.  
  54.     This sample will not play .ASX files.
  55.  
  56.  
  57. User Input:
  58.  
  59.     Simple user input is supported through the keyboard or through the 
  60.     application's main menu bar.
  61.  
  62.     Keyboard                    Action
  63.     --------                    ------
  64.     P                           Play/Pause toggle
  65.     S                           Stop and Rewind to beginning
  66.     M                           Audio mute toggle
  67.     F                           Full-screen mode toggle
  68.     Quit to menu (closes file)  ESC or Q or X or F12
  69.  
  70.  
  71. NOTE:  This sample enforces a minimum window size (currently 200x120) to prevent
  72. window problems when small videos are resized.  You may not resize a video to play
  73. in a window smaller than the defined minimum size.
  74.